package com.taotao.rest.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.rest.service.IItemService;

@Controller
@RequestMapping(value = "/item")
public class ItemController {
	@Autowired
	private IItemService itemService;

	@RequestMapping("/info/{itemId}")
	@ResponseBody
	public TaotaoResult getItemInfoById(@PathVariable Long itemId) {
		TaotaoResult taotaoResult = this.itemService.getItemInfoById(itemId);
		return taotaoResult;
	}
}
